home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: Using char array (CORRECTION!)
- Date: 25 Feb 1996 17:18:50 -0800
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4gr1pqINNrbb@keats.ugrad.cs.ubc.ca>
- References: <20FEB199609155775@sundog.caltech.edu> <4gqk5m$jno@aphex.direct.ca> <4gqv0kINNd2k@keats.ugrad.cs.ubc.ca>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4gqv0kINNd2k@keats.ugrad.cs.ubc.ca>,
- Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
-
- >The expression &arr is the address of the whole array, in this case a five
- >element array, and has the type, in cast notation (char *[5]).
-
- That should, of course read: char (*)[5]
-
- which is pointer to an array of five characters. The mistaken notation means an
- array of five character pointers.
-
- (Dan Pop, go away! :)
- --
-
-